package com.lanchetech.user.controller;

import com.lanchetech.bean.response.RecommendInfoResp;
import com.lanchetech.bean.response.ResultData;
import com.lanchetech.user.service.RecommendService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "推荐接口", tags = "推荐接口(开放接口)")
@RequestMapping("/api/recommend")
@RestController
public class RecommendController {

    @Autowired
    RecommendService recommendService;

    @ApiOperation("获取推荐信息")
    @GetMapping("/getRecommendInfo")
    public ResultData<RecommendInfoResp> getRecommendInfo() {
        return recommendService.getRecommendInfo();
    }

}
